<!DOCTYPE html>
<html devsite>
  <head>
    <title>TensorFlowLiteSwift Framework Reference</title>
    <link rel="stylesheet" href="../../css/jazzy.css" />
    <meta charset='utf-8'>
  </head>
  <body>
    <div class="content-wrapper">
      <article class="main-content">
        <section>
          <section class="section">
            <h1>DataType</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">DataType</span> <span class="p">:</span> <span class="kt">Equatable</span><span class="p">,</span> <span class="kt">Hashable</span></code></pre>

                </div>
              </div>
            <p>The supported <code><a href="../../Structs/Tensor.html">Tensor</a></code> data types.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO4boolyA2EmF"></a>
                    <a name="//apple_ref/swift/Element/bool" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO4boolyA2EmF">bool</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A boolean.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO5uInt8yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/uInt8" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO5uInt8yA2EmF">uInt8</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>An 8-bit unsigned integer.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">uInt8</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO5int16yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/int16" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int16yA2EmF">int16</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A 16-bit signed integer.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">int16</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO5int32yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/int32" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int32yA2EmF">int32</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A 32-bit signed integer.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">int32</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO5int64yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/int64" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int64yA2EmF">int64</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A 64-bit signed integer.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">int64</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO7float16yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/float16" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float16yA2EmF">float16</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A 16-bit half precision floating point.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">float16</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO7float32yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/float32" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float32yA2EmF">float32</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A 32-bit single precision floating point.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">float32</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift0A0V8DataTypeO7float64yA2EmF"></a>
                    <a name="//apple_ref/swift/Element/float64" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float64yA2EmF">float64</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A 64-bit double precision floating point.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">float64</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>          </section>
        </section>
      </article>
    </div>
  </body>
</html>
